import axios from '@/api/fetch';
import SERVER from '@/api/server';

// GET 查询列表 /vsSalesReportChange/searchRetailReportChangeForDealer
export const queryList = (params) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeForDealer`, {
  params
})

// GET 导出 /vsSalesReportChange/searchRetailReportChangeForDealerExcel
export const exportExcel = (params) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeForDealerExcel`, {
  params,
  responseType: 'arraybuffer'
})

// GET 查询详情  /vsSalesReportChange/searchRetailReportChangeById
export const getInfoById = (Id) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeById?id=${Id}`)

// 零售订单维护	查询销售顾问	sysmanage	 /employeeNew/getEmployees	get
export const getEmployees = (params) => axios.get(`${SERVER.SYSMANAGE}/employeeNew/getEmployees`, {
  params
});

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);

// GET 查询审核记录  /vsSalesReportChange/searchRetailReportChangeById
export const getSalesChangeReceiveAuditCheck = params => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/getSalesChangeReceiveAuditCheck?cmsApplyNo=${params.cmsApplyNo}&ownerCode=${params.ownerCode}`);
